package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description:
 * @Author:LiJian
 * @Date:2018/01/01
 */
@Getter
@AllArgsConstructor
public enum ProductTypeEnum {

    SPEED_LOAN((byte) 1, "极速借"),
    CARD_NIU_LOAN((byte) 4, "卡牛"),
    SMALL_LOAN((byte) 8, "小易借"),
    SOCIAL_SECURITY_LOAN((byte) 9, "社保借"),
    CREDIT_CARD_LOAN_NEW((byte) 10, "信用卡借"),
    CONSUME_LOAN((byte) 14, "消费贷"),
    ;
    private Byte ProductType;
    private String ProductDesc;

    public static ProductTypeEnum enumOf(byte ProductType) {
        for (ProductTypeEnum productTypeEnum : values()) {
            if (productTypeEnum.ProductType.equals(ProductType) ) {
                return productTypeEnum;
            }
        }
        return null;
    }
}
